window.onload = ()=> {
    const audioInpSle = document.querySelector("#macr-audio-inputselect");
    navigator.mediaDevices.enumerateDevices().then((devices)=> {
        console.log(devices);
        devices.forEach((device)=> {
            if(device.kind === "audioinput") {
                const option = document.createElement("option");
                option.text = device.label;
                option.value = device.deviceId;
                audioInpSle.appendChild(option);
            }
        })
    })
}